﻿using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using RomanNumeralKata.Core.Utility;

namespace RomanNumeralKata.Core.Installers
{
    public class RomanNumeralConversionInstaller : IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register(
                Component.For<IRomanNumeralConverter>().ImplementedBy<RomanNumeralRecursiveConverter>(),
                    Component.For<IRomanNumeralValidator>().ImplementedBy<RomanNumeralRegExValidator>()
                );
        }
    }
}